package com.salon.modules.makeup.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 客户风采
 *
 * @author lch 12345678@qq.com
 * @since 1.0.0 2023-10-09
 */
@Data
@TableName("tb_custom")
public class CustomEntity {

    /**
     * 主键
     */
	private Long id;
    /**
     * 标题
     */
	private String title;
    /**
     * 简介
     */
	private String brief;
    /**
     * 风采图片
     */
	private String picUrl;
    /**
     * 状态
     */
	private Integer status;
    /**
     * 备注
     */
	private String note;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}